package xyz.zdsoft.project_group_manage_module.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import xyz.zdsoft.common.utils.Result;
import xyz.zdsoft.project_group_manage_module.entity.MyDto.SelTeamBean;
import xyz.zdsoft.project_group_manage_module.entity.MyDto.TeamGch;
import xyz.zdsoft.project_group_manage_module.service.TermSelStudentNotInTeamService;

import javax.annotation.Resource;

@RestController
@Api(tags = "项目组管理")
public class AdminSelStudentNInTeamController {
    @Resource
    private TermSelStudentNotInTeamService termSelStudentNotInTeamService;
    @ApiOperation("条件查询未分组的学生(分页)")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "currentPage",value = "当前页",required = true,example = "1"),
            @ApiImplicitParam(name = "size",value ="每页数量",required = true,example = "5")
    })
    @PostMapping("/TermSelStudentNotInTeam")
    public Result<TeamGch> SelStudentNotInTeam(Integer currentPage, Integer size, SelTeamBean selTeamBean){
        return Result.ok().message("查询成功").data(termSelStudentNotInTeamService.SelStudentNotInTeam(currentPage,size,selTeamBean));
    }
}
